/*
** my_putnbr.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Fri Mar 23 04:44:43 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:37:10 2012 christophe labonnemartinez
*/

#include "includes/my.h"

int	my_putnbr(int n)
{
  if (n < 0)
    {
      my_putchar('-');
      n = -n;
    }
  if (n > 9)
    my_putnbr(n / 10);
  return (my_putchar('0' + n % 10));
}
